package transaction;

import java.util.Stack;
import java.util.Vector;

public class TransactionManager {
    
    public void transaction(int st) {
        
    }
    
    // checkpoint, diff, undo, redo
    

    protected Object context;
    protected Vector checkpoint;
    protected Stack  undo;
    protected Stack  redo;
    protected int    undo_depth;
    protected int    transactions = 0;
    protected int    transaction_state = TRANSACTION_END;
    
    
    protected static int TRANSACTION_START   = 0;
    protected static int TRANSACTION_END     = 1;
    protected static int CHECKPOINT_MOD      = 0;
    protected static int CHECKPOINT_ADD      = 1;
    protected static int CHECKPOINT_DEL      = -1;
    protected static int CHECKPOINT_ORIGINAL = -2;

}
